package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AgentiaProjectPerformanceVerifyHistory;
import com.zhijian.medical.entity.vo.request.AgentiaProjectPerformanceVerifyHistorySearchVo;
import com.zhijian.medical.entity.vo.response.AgentiaProjectPerformanceVerifyHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AgentiaProjectPerformanceVerifyHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentiaProjectPerformanceVerifyHistory record);

    int insertSelective(AgentiaProjectPerformanceVerifyHistory record);

    AgentiaProjectPerformanceVerifyHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentiaProjectPerformanceVerifyHistory record);

    int updateByPrimaryKey(AgentiaProjectPerformanceVerifyHistory record);

    int count(AgentiaProjectPerformanceVerifyHistorySearchVo agentiaProjectPerformanceVerifyHistorySearchVo);

    List<AgentiaProjectPerformanceVerifyHistoryVo> selectList(AgentiaProjectPerformanceVerifyHistorySearchVo agentiaProjectPerformanceVerifyHistorySearchVo);

    AgentiaProjectPerformanceVerifyHistoryVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<AgentiaProjectPerformanceVerifyHistory> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @param day
     * @return
     */
    String selectMaxCodeByDay(String day);
}